package com.reins.bookstore.repository;

import com.reins.bookstore.entity.OrderItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface OrderlistRepository extends JpaRepository<OrderItem,Integer> {

    @Query(value = "select * from Orderitem where order_id = :id ",nativeQuery = true)
    List<OrderItem> findAllOrderlistsByOrderId(Integer id);

}
